package com.example.siyun.service.impl.shouyeserviceimpl;

import com.example.siyun.mapper.shouyemapper.AccountMapper;
import com.example.siyun.pojo.UserList;
import com.example.siyun.service.shouyeservice.AccountServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
/**
 * @Auther: 全
 * @Date: 2022/9/26 09:33
 * @Description:首页模块的账户设置
 */
@Service
public class AccountServerImp implements AccountServer {

    @Autowired
    private AccountMapper accountMapper;
    /**
     * 获取账户设置的信息
     * @param username 获取登录的用户名
     * @return 返回信息以及账户的信息
     */
    @Transactional
    @Override
    public UserList getAcc(String username) {
        return accountMapper.getACC(username);
    }
}
